$package('jeecg.shopBannerImgSetting');
jeecg.shopBannerImgSetting = function(){
	var _box = null;
	var _this = {
		config:{
			event:{
				add:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.add();
				},
				edit:function(){
					$('#typeIds_combobox').combobox('reload');
					_box.handler.edit();
				}
			},
  			dataGrid:{
  				title:'收银台轮播图设置',
	   			url:'dataList.do',
	   			columns:[[
					{field:'id',checkbox:true},
					{field:'merchantNo',title:'核心门店编号',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.merchantNo;
							}
						},
					{field:'departmentNo',title:'门店编号',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.departmentNo;
							}
						},
					{field:'bannerName',title:'',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bannerName;
							}
						},
					{field:'bannerImg',title:'轮播图',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bannerImg;
							}
						},
					{field:'bannerUrl',title:'轮播图链接',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bannerUrl;
							}
						},
					{field:'bannerType',title:'轮播图类别 0:安卓收银台 1:H5点餐前显示 2：支付完成页面显示',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.bannerType;
							}
						},
					{field:'isShow',title:'是否显示0：不显示 1：显示',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.isShow;
							}
						},
					{field:'createTime',title:'创建时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.createTime;
							}
						},
					{field:'modifyTime',title:'修改时间',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.modifyTime;
							}
						},
					{field:'modifierNo',title:'修改人编号',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.modifierNo;
							}
						},
					{field:'modifierCn',title:'修改人名称',align:'center',sortable:true,
							formatter:function(value,row,index){
								return row.modifierCn;
							}
						},
					]]
			}
		},
		init:function(){
			_box = new YDataGrid(_this.config); 
			_box.init();
		}
	}
	return _this;
}();

$(function(){
	jeecg.shopBannerImgSetting.init();
});